﻿using System;
using Orid.Management.Statistics.Tools.Decomposition.Config;
using System.Collections.Generic;

namespace Orid.Management.Statistics.Tools.Decomposition.Data
{
    class OperatorRoleOnline:OperatorRole
    {
       string connectString, accountTableName,accountInRoleTalbeName;

       public OperatorRoleOnline()
        {

            connectString =Setting.SettingInstance.DBAddress_Online;
        
            accountTableName = "[FutureManagement_Masters].[FutureMa].[Accounts] ";
            accountInRoleTalbeName = " [FutureManagement_Masters].[FutureMa].[AccountInRole] ";
        }

       public override  List< Model.ModelOperatorRole> GetOperatorRole()
       { 
            try
            { 
                return GetOperatorRole(connectString, accountTableName,accountInRoleTalbeName);

            }
            catch (System.Data.SqlClient.SqlException ex)
            {
                throw (new Exception(ex.Message));
            }
        
        }
    }
}
